scrollbar: Add new API to gtk4-sections.txt
authorTimm Bäder <mail@baedert.org>
Thu, 25 May 2017 15:34:23 +0000 (17:34 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000 (21:27 -0400)
and update the css node docs

docs/reference/gtk/gtk4-sections.txt
gtk/gtkrange.c
gtk/gtkscrollbar.c
gtk/gtkscrollbar.h

index b99227b0396ea10027efaa1da940819c127b4cf0..2f9996564028ed0487c3214358f7c686d4d901b6 100644 (file)
@@ -2524,6 +2524,8 @@ gtk_scrollable_get_type
 <TITLE>GtkScrollbar</TITLE>
 GtkScrollbar
 gtk_scrollbar_new
+gtk_scrollbar_get_adjustment
+gtk_scrollbar_set_adjustment
 <SUBSECTION Standard>
 GTK_SCROLLBAR
 GTK_IS_SCROLLBAR
index f8afc2ccfc958018fc4e85444ffd07a8dc7497ad..efb0e9753401657a32e92d987389bdd1a2fb8cbd 100644 (file)
@@ -458,6 +458,7 @@ gtk_range_class_init (GtkRangeClass *class)
   g_object_class_install_properties (gobject_class, LAST_PROP, properties);
 
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_RANGE_ACCESSIBLE);
+  gtk_widget_class_set_css_name (widget_class, "range");
 }
 
 static void
index 13268f0d0acb78c91268e741e7e9b0d3a01df8d3..2f6b7c8d8e78283a7befaf2b1cdb98dfe699355b 100644 (file)
@@ -26,7 +26,7 @@
 #include "config.h"
 
 #include "gtkscrollbar.h"
-#include "gtkrangeprivate.h"
+#include "gtkrange.h"
 
 #include "gtkadjustment.h"
 #include "gtkintl.h"
  *
  * |[<!-- language="plain" -->
  * scrollbar[.fine-tune]
- * ╰── contents
- *     ├── [button.up]
- *     ├── [button.down]
- *     ├── trough
- *     │   ╰── slider
- *     ├── [button.up]
- *     ╰── [button.down]
+ * ╰── box
+ *     ╰── range
+ *         ╰── trough
+ *             ╰── slider
  * ]|
  *
  * GtkScrollbar has a main CSS node with name scrollbar and a subnode for its
- * contents, with subnodes named trough and slider.
+ * contents. Both the main node and the box subnode get the .horizontal or .vertical
+ * style classes applied, depending on the scrollbar's orientation.
  *
  * The main node gets the style class .fine-tune added when the scrollbar is
  * in 'fine-tuning' mode.
index 1844c537e3620e8733a4a5408b9d727b22155bbb..0f35a93724e6ea07620bc51ed66cb6559877eccb 100644 (file)
@@ -30,7 +30,7 @@
 #error "Only <gtk/gtk.h> can be included directly."
 #endif
 
-#include <gtk/gtkrange.h>
+#include <gtk/gtkwidget.h>
 
 
 G_BEGIN_DECLS